import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        // 读取一行输入
        String line = in.nextLine();

        // 按空格分割成单词数组
        String[] words = line.split(" ");
        StringBuilder ret = new StringBuilder();
        // 处理每个单词
        for (int i = 0; i < words.length; i++) {
            String word = words[i];
            if (word.length() > 0) {
                // 首字母大写，其余字母保持原样
                char capitalized = Character.toUpperCase(word.charAt(0));
                ret.append(capitalized);
            }
        }

        // 重新组合成字符串并输出
        System.out.println(ret);

        in.close();
    }
}
